package com.incar.chuxing.utils;

import android.content.Context;
import android.content.Intent;

import com.incar.chuxing.activity.CarParkingFeeActivity;
import com.incar.chuxing.activity.PayDetailActivity;
import com.incar.chuxing.activity.PaymentActivity;

import com.incar.chuxing.bean.SettlementDetailBean;

/**
 * Created by jieyaozu on 2017/5/4.
 */

public class IntentUtils {

    /**
     * 去输入停车费页面
     *
     * @param context
     * @param orderId
     */
    public static void toCarParkingFeeActivity(Context context, String orderId) {
        Intent intent = new Intent(context, CarParkingFeeActivity.class);
        intent.putExtra(IntentKey.INTENT_ORDER_ID, orderId);
        context.startActivity(intent);
    }

    /**
     * 去订单结算页面
     *
     * @param context
     * @param orderId
     * @param bikeId
     */
    public static void toPaymentActivity(Context context, String orderId, String bikeId) {
        Intent intent = new Intent(context, PaymentActivity.class);
        intent.putExtra(IntentKey.INTENT_ORDER_ID, orderId);
        intent.putExtra(IntentKey.INTENT_BIKE_ID, bikeId);
        context.startActivity(intent);
    }


    /**
     * 去订单详情页面(汽车)
     *
     * @param context
     * @param orderId
     */
    public static void toCarSettlementDetailActivity(Context context, String orderId, SettlementDetailBean settlementDetailBean, String coupontitle, double couponPrice) {
        Intent intent = new Intent(context, PayDetailActivity.class);
        intent.putExtra(IntentKey.INTENT_ORDER_ID, orderId);
        intent.putExtra(IntentKey.INTENT_SETTLEMENT_CAR_DETAIL, settlementDetailBean);
        intent.putExtra(IntentKey.INTENT_COUPONTITLE, coupontitle);
        intent.putExtra(IntentKey.INTENT_COUPONPRICE, couponPrice);
        context.startActivity(intent);
    }
}
